package com.behome.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.behome.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TMediaSource", description = "媒资文件")
@Data
@TableName(value = "t_media_source")
public class TMediaSource extends BaseEntity {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 文件名称
     */
    @TableField(value = "file_name")
    @ApiModelProperty(value="文件名称")
    private String fileName;

    /**
     * 文件物理路径
     */
    @TableField(value = "file_path")
    @ApiModelProperty(value="文件物理路径")
    private String filePath;

    /**
     * 显示名称
     */
    @TableField(value = "media_name")
    @ApiModelProperty(value="显示名称")
    private String mediaName;

    /**
     * 文件时长
     */
    @TableField(value = "time_length")
    @ApiModelProperty(value="文件时长")
    private String timeLength;

    /**
     * 文件大小
     */
    @TableField(value = "file_size")
    @ApiModelProperty(value="文件大小")
    private String fileSize;

    /**
     * 0.MP3,1.MP4 详情参见字典表
     */
    @TableField(value = "file_type")
    @ApiModelProperty(value="0.MP3,1.MP4 详情参见字典表")
    private Integer fileType;

    /**
     * 状态(1.待审核,2.审核通过,3.审核不通过,0禁用)
     */
    @TableField(value = "review_status")
    @ApiModelProperty(value="状态(0.待审核,1.审核通过,2.审核不通过)")
    private Integer reviewStatus;

    /**
     * 审核人ID
     */
    @TableField(value = "review_user")
    @ApiModelProperty(value="审核人ID")
    private Long reviewUser;

    /**
     * 访问级别(0私有1本级2所有)
     */
    @TableField(value = "access_level")
    @ApiModelProperty(value="访问级别(0私有1本级2所有)")
    private Integer accessLevel;

    /**
     * 媒资分类ID
     */
    @TableField(value = "media_type")
    @ApiModelProperty(value="媒资分类ID")
    private Long mediaType;

    /**
     * 上传人ID
     */
    @TableField(value = "upload_user")
    @ApiModelProperty(value="上传人ID")
    private Long uploadUser;

    /**
     * 上传时间
     */
    @TableField(value = "upload_time")
    @ApiModelProperty(value="上传时间")
    private Date uploadTime;

    /**
     * 审核时间
     */
    @TableField(value = "review_time")
    @ApiModelProperty(value="审核时间")
    private Date reviewTime;

    @TableField(value = "region_id")
    @ApiModelProperty(value="所属区域")
    private String regionId;

    @TableField(value = "detail")
    @ApiModelProperty(value="文字内容")
    private String detail;

    @TableField(exist = false)
    @ApiModelProperty(value="媒资类型名称")
    private String mediaTypeName;
}